package com.example.pathtracker.application

import android.app.Application
import com.amap.api.location.AMapLocationClient
import com.example.pathtracker.utils.LocationManager

class PathTrackerApplication : Application() {
    
    override fun onCreate() {
        super.onCreate()
        
        // 初始化高德地图SDK
        try {
            AMapLocationClient.updatePrivacyShow(this, true, true)
            AMapLocationClient.updatePrivacyAgree(this, true)
        } catch (e: Exception) {
            e.printStackTrace()
        }
        
        // 初始化位置管理器
        LocationManager.getInstance(this)
    }
    
    companion object {
        // 高德地图API Key
        const val AMAP_API_KEY = "e08e7709634832f0acae3a597f30dcd5"
    }
} 